<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
    class Statistics_c extends CI_Controller {
        
        function __construct() {
            parent::__construct();
            $this->load->model(array('event_m'));
        }
        
        function index($id = '') {
            $data['content'] = 'pages/stat';
            $data['title'] = 'Statistics';
            $data['current_page'] = 'statistics-page';
            $data['back_to'] = 'my_dashboard';
            $data['events'] = $this->event_m->get_events($id);
            $data['graph'] = $this->event_m->get_graph($id);
            $data['id'] = $id;
            $this->load->view('includes/template', $data);
        }
        function show_bday(){
            $this->event_m->get_events();
            
           
        }
        
    }
    
/* End of file statistics_c.php */
/* Location: ./application/controllers/statistics_c.php */